<!DOCTYPE html>
<html>
<head>
    <title><!-- IF PAGE_TITLE -->{PAGE_TITLE} :: {SITENAME}<!-- ELSE -->{SITENAME}<!-- ENDIF --></title>
    <meta http-equiv="Content-Type" content="text/html; charset={L_CONTENT_ENCODING}"/>
    <meta http-equiv="Content-Style-Type" content="text/css"/>
    {META}
    <link rel="stylesheet" href="{STYLESHEET}?v={$bb_cfg['css_ver']}" type="text/css">
    <link rel="icon" type="image/png" href="{SITE_URL}images/logo/logo_big.png"/>
    <link rel="shortcut icon" href="{SITE_URL}favicon.ico" type="image/x-icon">
    <link rel="search" type="application/opensearchdescription+xml" href="{SITE_URL}opensearch_desc.xml"
          title="{SITENAME} (Forum)"/>
    <link rel="search" type="application/opensearchdescription+xml" href="{SITE_URL}opensearch_desc_bt.xml"
          title="{SITENAME} (Tracker)"/>

    <script type="text/javascript" src="{SITE_URL}misc/js/jquery.pack.js?v={$bb_cfg['js_ver']}"></script>
    <script type="text/javascript" src="{SITE_URL}misc/js/main.js?v={$bb_cfg['js_ver']}"></script>
    <script type="text/javascript" src="{SITE_URL}misc/js/script.js?v={$bb_cfg['js_ver']}"></script>
    <!-- INCLUDE bootstrap.tpl -->
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-xs-12">
            <div class="navbar navbar-default">
                <div class="navbar-header">
                    <a class="navbar-brand" href="#">
                        <a href="{U_INDEX}" id="logo_link"><img src="/images/logo/logo_me.png" alt="{SITENAME}"/></a>
                    </a>
                </div>
                <div class="navbar-collapse collapse navbar-inverse-collapse">
                    <ul class="nav navbar-nav">
                        <li><a href="{U_INDEX}">{L_HOME}</a></li>
                        <li><a href="{U_TRACKER}">{L_TRACKER}</a></li>
                        <li><a href="{U_SEARCH}">{L_SEARCH}</a></li>
                        <li><a href="{U_TERMS}">{L_TERMS}</a></li>
                        <li><a href="{U_GROUP_CP}">{L_USERGROUPS}</a></li>
                        <li><a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a></li>
                    </ul>
                    <!-- IF LOGGED_IN -->
                    <form class="navbar-form navbar-right" id="quick-search" action="" method="post">
                        <input type="hidden" name="max" value="1" />
                        <input type="hidden" name="to" value="1" />
                        <input id="search-text" type="text" name="nm" placeholder="{L_SEARCH_S}" class="form-control col-lg-8" />
                        <select id="search-action" class="form-control">
                            <option value="tracker.php#results" selected="selected"> {L_TRACKER_S} </option>
                            <option value="search.php"> {L_FORUM_S} </option>
                        </select>
                        <input type="submit" class="btn btn-primary" value="{L_SEARCH}" style="width: 55px;" />
                    </form>
                    <!-- ENDIF -->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-3">
            <!-- IF LOGGED_IN -->
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h3 class="panel-title">{L_PROFILE_USER}</h3>
                </div>
                <div class="panel-body">
                    <p>
                        <!-- IF HAVE_NEW_PM || HAVE_UNREAD_PM -->
                        <a href="{U_READ_PM}" class="new-pm-link"><b>{L_PRIVATE_MESSAGES}: {PM_INFO}</b></a>
                        <!-- ELSE -->
                        <a href="{U_PRIVATEMSGS}"><b>{L_PRIVATE_MESSAGES}: {PM_INFO}</b></a>
                        <!-- ENDIF -->
                    </p>

                    <p>{L_USER_WELCOME} &nbsp;<b class="med">{THIS_USER}</b>&nbsp;
                        [ <a href="{U_LOGIN_LOGOUT}" onclick="return confirm('{L_CONFIRM_LOGOUT}');">{L_LOGOUT}</a> ]
                    </p>
                </div>
            </div>
            <!-- ELSE -->
                <!-- INCLUDE quick_login.tpl -->
            <!-- ENDIF -->
        </div>
        <!-- IF SHOW_SIDEBAR2 -->
        <div class="col-xs-6">
            <!-- ELSE -->
            <div class="col-xs-9">
                <!-- ENDIF / SHOW_SIDEBAR2 -->